package com.xi.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录成功结果封装类
 */
@Data
@NoArgsConstructor
public class LoginInfo {
    private Integer id; //员工ID
    private String username; //用户名
   /* private String name; //姓名*/
    private Integer role; //1-管理员 2-用户

    public LoginInfo(Integer id, String username, Integer role) {
        this.id = id;
        this.username = username;
        this.role = role;
    }
}
